package com.xiezc.dto;

/**
 * 异常类
 * Created by xiezc on 2017/5/19.
 */
public enum ExcepEnum {

    NotLogin(300, "你还没有登录或者登录超时")
    ,UNameOrPwdWrong(301,"用户名或者密码不对")
    ,UsedUName(302,"用户名已经被占用")
    ,IncorrectFileMd5(303,"文件的MD5码不对")
    ,FileNotExists(304,"文件不存在")
    ,UPRightFILE(305,"上传文件正确")
    ,UploadOutTime(306,"上传文件超时")
    ;


    ExcepEnum(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    private int code;

    private String msg;

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
}
